package com.jgp.glmeeting.model;


import com.jgp.sys.common.model.UUIDModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 参会人员表
 */
@Entity
@Table(name="gl_participants")
public class Participants extends UUIDModel {

    /**
     * 姓名
     */
    @Column(name="name",length = 20)
    private String name;

    @Column(name="cardNo",length = 18)
    private String cardNo;//身份证号

    @Column(name="mobilePhone",length = 20)
    private String mobilePhone;//手机号

    /**
     * 性别 0 女 1 男
     */
    @Column(name="sex",length = 5)
    private String sex;

    /**
     * 所属单位
     */
    @Column(name="workUnit",length = 20)
    private String workUnit;

    /**
     * 职务
     */
    @Column(name="job",length = 20)
    private String job;

    /**
     * 组织结构代码
     */
    @Column(name = "organizationCode", length = 50)
    private String organizationCode;

    /**
     * 发票抬头
     */
    @Column(name = "invoiceHead", length = 100)
    private String invoiceHead;

    /**
     * 所属组
     */
    @Column(name = "group")
    private String group;


    /**
     * 小程序的openId
     */
    @Column(name = "openId", length = 50)
    private String openId;

    /**
     * 是否签到 0 未签到 1 已签到
     */
    @Column(name = "isSign")
    private Integer isSign;

    /**
     * 是否就餐 0 不就餐 1 就餐
     */
    @Column(name = "isMeat")
    private Integer isMeat;

    /**
     * 是否住宿 0 不住宿 1 住宿
     */
    @Column(name = "isLive")
    private Integer isLive;

    /**
     * 是否打印发票 0 为打印 1 打印
     */
    @Column(name = "isInvoiced")
    private Integer isInvoiced;

    public Integer getIsInvoiced() {
        return isInvoiced;
    }

    public void setIsInvoiced(Integer isInvoiced) {
        this.isInvoiced = isInvoiced;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    public String getInvoiceHead() {
        return invoiceHead;
    }

    public void setInvoiceHead(String invoiceHead) {
        this.invoiceHead = invoiceHead;
    }

    public Integer getIsSign() {
        return isSign;
    }

    public void setIsSign(Integer isSign) {
        this.isSign = isSign;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getWorkUnit() {
        return workUnit;
    }

    public void setWorkUnit(String workUnit) {
        this.workUnit = workUnit;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public Integer getIsMeat() {
        return isMeat;
    }

    public void setIsMeat(Integer isMeat) {
        this.isMeat = isMeat;
    }

    public Integer getIsLive() {
        return isLive;
    }

    public void setIsLive(Integer isLive) {
        this.isLive = isLive;
    }

    public Participants() {

    }
    public  Participants(String name,String id){
        super.setId(id);
        this.name =  name;
    }
}
